<div class="body-wrap">

<h1>Class <a href='source/jasmine.html#jasmine-WaitsForBlock'>jasmine.WaitsForBlock</a></h1>
<table cellspacing='0'>

<tr><td class='label'>Extends:</td><td class='hd-info'>Object</td></tr>

<tr><td class='label'>Defined In:</td><td class='hd-info'><a href='source/jasmine.html#jasmine-WaitsForBlock'>jasmine.js</a></td></tr>





</table>
<div class='description'><p>A block which waits for some condition to become true, with timeout.</p>
</div>
<div class='hr'></div>


<a id='jasmine.WaitsForBlock-methods'></a>
<h2>Public Methods</h2>
<table cellspacing='0' class='member-table'><tbody>
<tr><th colspan='2' class='sig-header'>Method</th><th class='msource-header'>Defined By</th></tr>
      <tr class='method-row expandable '>
        <td class='micon'><a href='#expand' class='exi'>&nbsp;</a></td>
        <td class='sig'><a id='jasmine.WaitsForBlock-WaitsForBlock'></a><b><a href='source/jasmine.html#jasmine-WaitsForBlock-method-constructor'>WaitsForBlock</a></b>( <code>jasmine.Env env</code>, <code>Number timeout</code>, <code>Function latchFunction</code>, <code>String message</code>, <code>jasmine.Spec spec</code> ) : void<div class='mdesc'><div class='short'>
</div><div class='long'>
<div class='mdetail-params'>
<strong>Parameters:</strong>
<ul><li><code>env</code> : jasmine.Env<div class='sub-desc'><p>The Jasmine environment.</p>
</div></li><li><code>timeout</code> : Number<div class='sub-desc'><p>The maximum time in milliseconds to wait for the condition to become true.</p>
</div></li><li><code>latchFunction</code> : Function<div class='sub-desc'><p>A function which returns true when the desired condition has been met.</p>
</div></li><li><code>message</code> : String<div class='sub-desc'><p>The message to display if the desired condition hasn't been met within the given time period.</p>
</div></li><li><code>spec</code> : jasmine.Spec<div class='sub-desc'><p>The Jasmine spec.</p>
</div></li></ul>
<strong>Returns:</strong>
<ul><li><code>void</code><div class='sub-desc'>
</div></li></ul>
</div></div></div></td>
        <td class='msource'>WaitsForBlock</td>
      </tr>

</tbody></table>

</div>